package com.tkjt.pms.server.common;

import com.baomidou.mybatisplus.core.toolkit.StringUtils;
import com.tkjt.pms.common.IndexParam;

public class ServerParam extends IndexParam {

	public static final String SERVER_TYPE_SINGLE = "singleServer";
	public static final String SERVER_TYPE_Parallel = "parallelServer";

	protected String serverServiceName;
	protected String serverType;

	public void setServerServiceName(String serverServiceName) {
		this.serverServiceName = serverServiceName;
	}

	public String getServerServiceName() {
		return this.serverServiceName;
	}

	public String getServerType() {
		return serverType;
	}

	public void setServerType(String serverType) {
		this.serverType = serverType;
	}

	public boolean isSingleServer() {
		if (!StringUtils.isEmpty(serverType) && SERVER_TYPE_SINGLE.equals(serverType)) {
			return true;
		}
		return false;
	}

}
